package com.aqie.rabbitchat;

import android.content.Context;

import com.aqie.common.app.BaseApplication;
import com.aqie.factory.Factory;
import com.aqie.rabbitchat.activities.AccountActivity;
import com.getui.gs.sdk.GsManager;
import com.igexin.sdk.PushManager;

public class App extends BaseApplication {
    @Override
    public void onCreate() {
        super.onCreate();
        // 调用Factory进行初始化
        Factory.setup();
        // 个推统计初始化
        GsManager.getInstance().init(getApplicationContext());
        // 个推消息推送
        PushManager.getInstance().initialize(this);
    }

    @Override
    protected void showAccountView(Context context) {
        super.showAccountView(context);
        AccountActivity.show(context);
    }
}
